package modeles;

import java.util.Arrays;

public class Parametres {
	private static String driverSGBD;
	private static String url;
	private static String usager;
	private static String motDePasse;
	
	static{
		driverSGBD = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
		url = "jdbc:sqlserver://localhost:1433;DatabaseName=GirouardLacerteTp2;integratedSecurity=true";
		usager = "Farida";
		motDePasse = "1234";
	}
	
	public static String getDriver(){
		return driverSGBD;
	}
	public static String getUrl(){
		return url;
	}
	public static boolean validerUsager(String usager, char []motDePasse){
		if(Parametres.usager.equalsIgnoreCase(usager) && Arrays.equals(Parametres.motDePasse.toCharArray(), motDePasse)){
			return true;
		}
		return false;
	}
}
